package com.qianyu.core.entity.dto;

import com.qianyu.core.entity.base.BaseIdDto;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.util.List;

@Data
@ApiModel(value = "QqRecycleOrderDto")
public class QqRecycleOrderDto {

    @Data
    @ApiModel(value = "QqRecycleOrderDto&QqRecycleOrderSaveDto")
    public static class QqRecycleOrderSaveDto{
        /**
         * 对应账号ids
         */
        @ApiModelProperty(value = "对应账号ids")
        @NotEmpty(message = "对应账号ids不能为空")
        private List<Long> accountIds;

        @ApiModelProperty("汇率备注")
        private String rateUsdt;
    }

    @Data
    @ApiModel(value = "QqRecycleOrderDto&QqRecycleOrderCheckDto")
    public static class QqRecycleOrderCheckDto extends BaseIdDto {

        /**
         * 订单状态:0=已提交待代理商审核,1=代理商驳回,2=代理商通过待管理员处理,3=管理员驳回,4=管理员审核通过
         */
        @NotNull(message="[订单状态:1-驳回 2-通过]不能为空")
        @ApiModelProperty("订单状态:1-驳回 2-通过")
        private Integer status;
        /**
         * 代理审核语
         */
        @NotBlank(message="[审核语]不能为空")
        @Size(max= 100,message="编码长度不能超过100")
        @ApiModelProperty("审核语")
        private String auditText;
    }

}
